﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Common
{
    /// <summary>
    /// 应用程序信息
    /// </summary>
    public class AppInfo
    {
        /// <summary>
        /// 公司信息
        /// </summary>
        public string Company { get; set; }

        /// <summary>
        /// 产品信息
        /// </summary>
        public string Product { get; set; }

        /// <summary>
        /// 应用程序类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public Version Version { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 安装目录路径
        /// </summary>
        public string Directory { get; set; }

        /// <summary>
        /// 应用程序执行文件路径
        /// </summary>
        public string AppFile { get; set; }

        /// <summary>
        /// 图标文件路径
        /// </summary>
        public string IconFile { get; set; }

        public override string ToString()
        {
            return string.Format("Company:{0},Product:{1},Type:{2},Name:{3},Version:{4},Dir:{5},App:{6},Icon:{7}",
                Company,
                Product,
                Type,
                Name,
                Version,
                Directory,
                AppFile,
                IconFile);
        }
    }
}
